# 执行命令
# docker build -t jvm-sandbox .

FROM alpine:3.12.1

# [Option] Install Maven
RUN sed -i 's#dl-cdn.alpinelinux.org#mirrors.aliyun.com#g' /etc/apk/repositories \
    && apk update && apk upgrade && apk add ca-certificates \
    && apk --no-cache add openssl wget unzip bash bash-completion \
    && wget -O /home/sandbox-stable-bin.zip http://ompc.oss-cn-hangzhou.aliyuncs.com/jvm-sandbox/release/sandbox-stable-bin.zip \
    && unzip /home/sandbox-stable-bin.zip -d /home && rm -rf /home/sandbox-stable-bin.zip && cd /home/sandbox && sh install-local.sh

CMD ["/bin/sh"]